<?php

namespace common\models\quyouji;

use Yii;


/**
 * This is the model class for table "{{%menu_user}}".
 *
 * @property integer $id
 * @property string $name
 * @property string $icon
 * @property string $url
 * @property integer $top
 * @property string $remark
 * @property integer $is_valid
 * @property integer $created_at
 * @property integer $updated_at
 */
class MenuUser extends \yii\db\ActiveRecord
{
    
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%menu_user}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name', 'created_at', 'updated_at'], 'required'],
            [['top', 'is_valid', 'created_at', 'updated_at'], 'integer'],
            [['name'], 'string', 'max' => 32],
            [['icon'], 'string', 'max' => 64],
            [['url'], 'string', 'max' => 128],
            [['remark'], 'string', 'max' => 512],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => '标题',
            'icon' => '图标',
            'status' => '发送状态',
            'url'  => '跳转地址',
            'top'  => '排序值',
            'remark' => '备注'
        ];
    }
}
